package peer.assist;
import java.net.InetAddress;

import peer.Config;
public class AssistUser{
	int sessionId;
	InetAddress outIp;
	int outPortUDP;
	int outPortTCP;
	long lastActiveTime;
	InetAddress clientIp;
	int clientPort;
	InetAddress lanIp;
	int lanPortUDP;
	int lanPortTCP;
	int netType=Config.nodeType_PubNet;
	public AssistUser(int sessionId,InetAddress clientIp,int clientPort,InetAddress outIp,int outPortUDP,int outPortTCP,InetAddress lanIp,int lanPortUDP,int lanPortTCP,int netType){
		this.sessionId=sessionId;
		this.clientIp=clientIp;
		this.clientPort=clientPort;
		this.outIp=outIp;
		this.outPortUDP=outPortUDP;
		this.outPortTCP=outPortTCP;
		this.lanIp=lanIp;
		this.lanPortUDP=lanPortUDP;
		this.lanPortTCP=lanPortTCP;
		this.netType=netType;
		lastActiveTime=System.currentTimeMillis();
	}
	
	void active(){
		lastActiveTime=System.currentTimeMillis();
	}
	
	public InetAddress getOutIp(){
		return outIp;
	}
	
	public int getOutPortUDP(){
		return outPortUDP;
	}
	
	public int getOutPortTCP(){
		return outPortTCP;
	}
	
	public InetAddress getClientIp(){
		return clientIp;
	}
	
	public int getClientPort(){
		return clientPort;
	}
	
	public InetAddress getLanIp(){
		return lanIp;
	}
	
	public int getLanPortUDP(){
		return lanPortUDP;
	}
	
	public int getLanPortTCP(){
		return lanPortTCP;
	}
	
	public int getNetType(){
		return netType;
	}

}
